package com.iqiyi.pps.epg.core.model.program;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;

@Entity
@Table(name = "program_director_config")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class ProgramDirectorConfig {

    public static final int STATUS_SHOW = 2;
    public static final int STATUS_HIDE = 1;

    public static final String TYPE_EFFECT_ANIMATION = "effectAnimation";
    public static final String TYPE_EFFECT_AUDIO = "effectAudio";

    private int id;
    private String type;
    private Integer key;
    private String val;
    private String descr;
    private Integer status;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Column(name = "`key`")
    public Integer getKey() {
        return key;
    }

    public void setKey(Integer key) {
        this.key = key;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    @Column(name = "`status`")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
